import common from './common'

const paths = {
    saveData: 'app/common/project/{projectId}/save'
}

const service = {};

(service => {
    service.saveData = (params, data) => {
        const url = paths.saveData.replace('{projectId}', params.projectId)
        return common.post(url, params, data)
    }
})(service)

export default service
